home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
util4
/
0utils.lha
/
0Utils
/
Tackon.doc
< prev
next >
Wrap
Text File
|
1995-09-05
|
2KB
|
82 lines
NAME
Tackon
SYNOPSIS
Tackon - join path, filename and suffix - Requires v37
INPUTS
"PATH,NAME/A,SUFFIX"
DESCRIPTION
Tackon gets a filename and perhaps a pathname and a
suffix and creates a new filename out of them.
To add correctly filename to pathname we use AmigaDOS.
If the suffix starts with a "." or "_" (any non
alnum character), it is directly appended to the
full filename;
if suffix starts with an alphanumeric char,
a "." is prepended.
The resulting string is sent to STDOUT
RESULT
a filename created with the inputs.
NOTES
* CLI - only
* should compile with SAS-C
BUGS
* there is no check (yet), if suffix is itself a path
* the resulting filename must not be bigger than 256 chars
there is a strange behaviour if compiled w/ DICE;
* I cannot say why, but If You do not specify
each input-slot, You will get a Enforcer-Hits;
for that reason, I'll distribute Chris' SAS-executable
EXAMPLES
>Tackon x: a:b _c
a:b_c
>Tackon x:a b c
x:a/b.c
> tackon xx yy zz
xx/yy.zz
> tackon xx :yy -zz
:yy-zz
HISTORY
01-08-93 b_noll created
20-02-95 b_noll restructured source, removed mstrcpy
21-02-95 b_noll added version/format-prefix/offset
27-02-95 b_noll removed an Enforcer Hit (huch!)
20-03-95 b_noll added args diagnostics
20-03-95 b_noll fixed crash, if resultstring was too large,
always returned RETURN_WARN
19-08-95 b_noll created .data file
AUTHOR
Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
noll@student.uni-kl.de